<template>
    <h1>This is MoviesDetails</h1>
</template>


<script>
import axios from "axios";
import { constants } from "crypto";
import api from "../utils/api.js";


export default {
    data(){
        return{

        }
    },

    created(){
    //电影剧情详情
    let MoviesDetails = "/detailmovie";
    this.axios.get(MoviesDetails, {
        params: {
          movieId: this.$route.params.id 
        }
      })
      .then(res => {
        this.detailmovie = res.data.detailMovie;
        this.list = res.data;
      })
      .catch(err => {
        console.warn(err);
      });
    }
}
</script>
